Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubs for Typhoeus::Request#on_body #349

Merged
merged 4 commits into from Jan 1, 2014

Conversation

spraints
Copy link
Contributor

Typhoeus 0.6.7 includes support for streaming. This branch adds support for mocking streamed typhoeus requests. For example, it makes it possible to use wemock to do the stubbing for this code:

request = Typhoeus::Request.new('https://github.com')
request.on_body { |chunk| p chunk }
request.run

cc typhoeus/typhoeus#339

@bblimke
Copy link
Owner

bblimke commented Jan 1, 2014

Cheers @spraints It looks good.

bblimke added a commit that referenced this pull request Jan 1, 2014
Stubs for Typhoeus::Request#on_body
@bblimke bblimke merged commit e89d0ec into bblimke:master Jan 1, 2014
@spraints spraints deleted the streaming-typhoeus branch January 7, 2014 14:25
@spraints spraints restored the streaming-typhoeus branch January 8, 2014 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants